.class Lcom/example/m6shop/CxListActivity$4;
.super Ljava/lang/Thread;
.source "CxListActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6shop/CxListActivity;->getSource()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6shop/CxListActivity;


# direct methods
.method constructor <init>(Lcom/example/m6shop/CxListActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6shop/CxListActivity$4;->this$0:Lcom/example/m6shop/CxListActivity;

    .line 266
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 22

    .prologue
    .line 268
    invoke-super/range {p0 .. p0}, Ljava/lang/Thread;->run()V

    .line 270
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/CxListActivity$4;->this$0:Lcom/example/m6shop/CxListActivity;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget-object v0, v0, Lcom/example/m6shop/CxListActivity;->list:Ljava/util/List;

    move-object/from16 v19, v0

    invoke-interface/range {v19 .. v19}, Ljava/util/List;->clear()V

    .line 271
    new-instance v11, Landroid/os/Message;

    invoke-direct {v11}, Landroid/os/Message;-><init>()V

    .line 273
    .local v11, "msg":Landroid/os/Message;
    sget-object v19, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v20, "\u5f00\u59cb\u6293\u53d6\u6570\u636e---"

    invoke-virtual/range {v19 .. v20}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 274
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/CxListActivity$4;->this$0:Lcom/example/m6shop/CxListActivity;

    move-object/from16 v19, v0

    .line 275
    const-string v20, "userInfo"

    const/16 v21, 0x0

    .line 274
    invoke-virtual/range {v19 .. v21}, Lcom/example/m6shop/CxListActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v14

    .line 276
    .local v14, "preferences":Landroid/content/SharedPreferences;
    const-string v19, "uid"

    const-string v20, ""

    move-object/from16 v0, v19

    move-object/from16 v1, v20

    invoke-interface {v14, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 277
    .local v2, "account":Ljava/lang/String;
    const-string v19, "pass"

    const-string v20, ""

    move-object/from16 v0, v19

    move-object/from16 v1, v20

    invoke-interface {v14, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    .line 278
    .local v13, "password":Ljava/lang/String;
    if-eqz v2, :cond_0

    const-string v19, ""

    move-object/from16 v0, v19

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-eqz v19, :cond_1

    .line 279
    :cond_0
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 280
    const-string v19, "nologin"

    move-object/from16 v0, v19

    iput-object v0, v11, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 281
    const/16 v19, 0x1

    move/from16 v0, v19

    iput v0, v11, Landroid/os/Message;->arg1:I

    .line 282
    sget-object v19, Lcom/example/m6shop/CxListActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v19

    invoke-virtual {v0, v11}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 364
    :goto_0
    return-void

    .line 286
    :cond_1
    new-instance v19, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/CxListActivity$4;->this$0:Lcom/example/m6shop/CxListActivity;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/CxListActivity;->m:Lmyapp/MyApp;

    move-object/from16 v20, v0

    invoke-virtual/range {v20 .. v20}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v20 .. v20}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v20

    invoke-direct/range {v19 .. v20}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 287
    const-string v20, "/index.php?ctrl=app&action=shopcxlist&datatype=json&page="

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    # getter for: Lcom/example/m6shop/CxListActivity;->page:I
    invoke-static {}, Lcom/example/m6shop/CxListActivity;->access$1()I

    move-result v20

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v19

    const-string v20, "&pagesize="

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    # getter for: Lcom/example/m6shop/CxListActivity;->pagesize:I
    invoke-static {}, Lcom/example/m6shop/CxListActivity;->access$3()I

    move-result v20

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v19

    const-string v20, "&uid="

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    .line 288
    move-object/from16 v0, v19

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    const-string v20, "&pwd="

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    move-object/from16 v0, v19

    invoke-virtual {v0, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    const-string v20, "&controltype="

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/CxListActivity$4;->this$0:Lcom/example/m6shop/CxListActivity;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/example/m6shop/CxListActivity;->controltype:Ljava/lang/String;

    move-object/from16 v20, v0

    invoke-virtual/range {v19 .. v20}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v19

    .line 286
    invoke-virtual/range {v19 .. v19}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v18

    .line 289
    .local v18, "url":Ljava/lang/String;
    sget-object v19, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v20, Ljava/lang/StringBuilder;

    const-string v21, "\u8c03\u7528\u66f4\u65b0\u6570\u636e----------------------------"

    invoke-direct/range {v20 .. v21}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v20

    move-object/from16 v1, v18

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 290
    invoke-static/range {v18 .. v18}, Lmyclass/HttpConn;->getStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v17

    .line 291
    .local v17, "str":Ljava/lang/String;
    sget-object v19, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v20, Ljava/lang/StringBuilder;

    const-string v21, "\u8fd4\u56de\u6570\u636e"

    invoke-direct/range {v20 .. v21}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v20

    move-object/from16 v1, v17

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-virtual/range {v19 .. v20}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 294
    :try_start_0
    new-instance v9, Lorg/json/JSONObject;

    move-object/from16 v0, v17

    invoke-direct {v9, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 296
    .local v9, "json":Lorg/json/JSONObject;
    const-string v19, "error"

    move-object/from16 v0, v19

    invoke-virtual {v9, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v19

    const-string v20, "true"

    invoke-virtual/range {v19 .. v20}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-eqz v19, :cond_2

    .line 297
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 299
    const-string v19, "msg"

    move-object/from16 v0, v19

    invoke-virtual {v9, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, v19

    iput-object v0, v11, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 300
    const/16 v19, 0x1

    move/from16 v0, v19

    iput v0, v11, Landroid/os/Message;->arg1:I

    .line 301
    sget-object v19, Lcom/example/m6shop/CxListActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v19

    invoke-virtual {v0, v11}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 356
    .end local v9    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v4

    .line 358
    .local v4, "e":Lorg/json/JSONException;
    invoke-virtual {v4}, Lorg/json/JSONException;->printStackTrace()V

    .line 359
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 361
    const/16 v19, 0x4

    move/from16 v0, v19

    iput v0, v11, Landroid/os/Message;->arg1:I

    .line 362
    sget-object v19, Lcom/example/m6shop/CxListActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v19

    invoke-virtual {v0, v11}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 304
    .end local v4    # "e":Lorg/json/JSONException;
    .restart local v9    # "json":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    const-string v19, "msg"

    move-object/from16 v0, v19

    invoke-virtual {v9, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v19

    if-eqz v19, :cond_3

    .line 305
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 306
    const/16 v19, 0x2

    move/from16 v0, v19

    iput v0, v11, Landroid/os/Message;->arg1:I

    .line 307
    sget-object v19, Lcom/example/m6shop/CxListActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v19

    invoke-virtual {v0, v11}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 311
    :cond_3
    const-string v19, "msg"

    move-object/from16 v0, v19

    invoke-virtual {v9, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v19

    if-nez v19, :cond_4

    .line 312
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/CxListActivity$4;->this$0:Lcom/example/m6shop/CxListActivity;

    move-object/from16 v19, v0

    const-string v20, "msg"

    move-object/from16 v0, v20

    invoke-virtual {v9, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    move-object/from16 v0, v20

    move-object/from16 v1, v19

    iput-object v0, v1, Lcom/example/m6shop/CxListActivity;->message:Ljava/lang/String;

    .line 314
    :cond_4
    sget-object v19, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v20, "\u8f6c\u6362\u6570\u636e"

    invoke-virtual/range {v19 .. v20}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 318
    const-string v19, "msg"

    move-object/from16 v0, v19

    invoke-virtual {v9, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v8

    .line 319
    .local v8, "jarray":Lorg/json/JSONArray;
    const/4 v6, 0x0

    .local v6, "i":I
    :goto_1
    invoke-virtual {v8}, Lorg/json/JSONArray;->length()I

    move-result v19

    move/from16 v0, v19

    if-lt v6, v0, :cond_5

    .line 351
    sget-object v19, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v20, "\u8fd4\u56de\u6570\u636e\u7ed3\u675f"

    invoke-virtual/range {v19 .. v20}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 352
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 353
    sget-object v19, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v20, "\u5173\u95ed\u63d0\u793a"

    invoke-virtual/range {v19 .. v20}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 354
    const/16 v19, 0x3

    move/from16 v0, v19

    iput v0, v11, Landroid/os/Message;->arg1:I

    .line 355
    sget-object v19, Lcom/example/m6shop/CxListActivity;->h:Landroid/os/Handler;

    move-object/from16 v0, v19

    invoke-virtual {v0, v11}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 320
    :cond_5
    invoke-virtual {v8, v6}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v19

    .line 321
    const-string v20, "id"

    .line 320
    invoke-virtual/range {v19 .. v20}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 323
    .local v7, "id":Ljava/lang/String;
    invoke-virtual {v8, v6}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v19

    const-string v20, "name"

    invoke-virtual/range {v19 .. v20}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 324
    .local v12, "name":Ljava/lang/String;
    invoke-virtual {v8, v6}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v19

    .line 325
    const-string v20, "status"

    .line 324
    invoke-virtual/range {v19 .. v20}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v16

    .line 327
    .local v16, "status":Ljava/lang/String;
    invoke-virtual {v8, v6}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v19

    .line 328
    const-string v20, "starttime"

    .line 327
    invoke-virtual/range {v19 .. v20}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    .line 329
    .local v15, "starttime":Ljava/lang/String;
    invoke-virtual {v8, v6}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v19

    .line 330
    const-string v20, "endtime"

    .line 329
    invoke-virtual/range {v19 .. v20}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v19

    .line 330
    if-eqz v19, :cond_6

    invoke-virtual {v8, v6}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v19

    .line 331
    const-string v20, "endtime"

    invoke-virtual/range {v19 .. v20}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 332
    .local v5, "endtime":Ljava/lang/String;
    :goto_2
    invoke-virtual {v8, v6}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v19

    .line 333
    const-string v20, "content_c"

    .line 332
    invoke-virtual/range {v19 .. v20}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 337
    .local v3, "content_c":Ljava/lang/String;
    new-instance v10, Ljava/util/HashMap;

    invoke-direct {v10}, Ljava/util/HashMap;-><init>()V

    .line 339
    .local v10, "map":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v19, "id"

    move-object/from16 v0, v19

    invoke-interface {v10, v0, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 340
    const-string v19, "name"

    move-object/from16 v0, v19

    invoke-interface {v10, v0, v12}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 341
    const-string v19, "status"

    move-object/from16 v0, v19

    move-object/from16 v1, v16

    invoke-interface {v10, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 342
    const-string v19, "starttime"

    move-object/from16 v0, v19

    invoke-interface {v10, v0, v15}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 343
    const-string v19, "endtime"

    move-object/from16 v0, v19

    invoke-interface {v10, v0, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 344
    const-string v19, "content_c"

    move-object/from16 v0, v19

    invoke-interface {v10, v0, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 346
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/CxListActivity$4;->this$0:Lcom/example/m6shop/CxListActivity;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    iget-object v0, v0, Lcom/example/m6shop/CxListActivity;->list:Ljava/util/List;

    move-object/from16 v19, v0

    move-object/from16 v0, v19

    invoke-interface {v0, v10}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 319
    add-int/lit8 v6, v6, 0x1

    goto/16 :goto_1

    .line 331
    .end local v3    # "content_c":Ljava/lang/String;
    .end local v5    # "endtime":Ljava/lang/String;
    .end local v10    # "map":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_6
    const-string v5, ""
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_2
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 367
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 368
    monitor-exit p0

    return-void

    .line 367
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
